/**
 * Class to keep information about Location
 * 
 * @author panthro.rafael@gmail.com
 * 
 */
package com.sleepsocial.persistency.entity.location;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Location {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key          key;
    @Persistent
    private long         latitute;
    @Persistent
    private long         longitude;
    @Persistent
    private long         altitude;
    @Persistent
    private long         accuracy;
    @Persistent
    private ProviderType provider;

    public long getAccuracy() {
        return accuracy;
    }

    public long getAltitude() {
        return altitude;
    }

    public Key getKey() {
        return key;
    }

    public long getLatitute() {
        return latitute;
    }

    public long getLongitude() {
        return longitude;
    }

    public ProviderType getProvider() {
        return provider;
    }

    public void setAccuracy(long accuracy) {
        this.accuracy = accuracy;
    }

    public void setAltitude(long altitude) {
        this.altitude = altitude;
    }

    public void setLatitute(long latitute) {
        this.latitute = latitute;
    }

    public void setLongitude(long longitude) {
        this.longitude = longitude;
    }

    public void setProvider(ProviderType provider) {
        this.provider = provider;
    }

}
